package com.example.demo.service;

import com.example.demo.info.City;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @author: xianyunpeng
 */
@Service
public class CityServiceImpl implements CityService {
    @Override
    public City findCityById(Long id) {
        City city = new City();
        city.setCityName("武汉");
        city.setDescription("大武汉");
        return city;
    }

    @Override
    public List<City> findAllCity() {
        City city = new City();
        city.setCityName("武汉");
        city.setDescription("大武汉");
        List<City> cities = new ArrayList<>();
        cities.add(city);
        return cities;
    }
}
